<?php

function filter_show($input){
    switch($input){
        case '0':
            $str = '否';
            break;
        case '1':
            $str = '显示';
            break;
    }
    return $str;
}

function checked_cat_priv($role, $nav, $opr){
    $model = D('NavPriv');
    return $model->checked_priv($role, $nav, $opr);
}